package com.cw.subject.domain.convert;

import com.cw.subject.domain.entity.SubjectCategoryBO;
import com.cw.subject.infra.basic.entity.SubjectCategoryPO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectCatetoryConverter {
    SubjectCatetoryConverter INSTANCE = Mappers.getMapper(SubjectCatetoryConverter.class);

    // 通过SubjectCategoryBO转化为SubjectCategoryPO
    SubjectCategoryPO convertBoToCategory(SubjectCategoryBO subjectCategoryBO);

    List<SubjectCategoryBO> convertPOListToCategoryBOList(List<SubjectCategoryPO> categoryPOList);

}
